package com.hujiang.basic.search.handler.impl;

import com.hujiang.basic.framework.plugin.mq.consume.Handler;
import com.hujiang.basic.search.api.IndexService;
import com.hujiang.basic.search.model.HJIndexRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndexHandler implements Handler<HJIndexRequest> {

    @Autowired
    private IndexService service;

    @Override
    public void handle(HJIndexRequest req) {
        service.add(req);
    }
}
